home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 July / macformat52.iso / mac / Shareware Plus / Comms / ICeTEe 2 / Source (for Programmers only) / ICeTEe AddrsTable.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-31  |  1.6 KB  |  48 lines

  1. /*    NAME:
  2.         ICeTEe AddrsTable.h
  3.  
  4.     WRITTEN BY:
  5.         Michael Schürig
  6.                  
  7.     DESCRIPTION:
  8.         Header file for ICeTEe AddrsTable.c, containing the definition of our
  9.         Address Table.
  10.  
  11.     ___________________________________________________________________________
  12. */
  13. #ifndef __ICeTEe_ADDRSTABLE__
  14. #define __ICeTEe_ADDRSTABLE__
  15.  
  16. #include <AppleEvents.h>
  17.  
  18. //=============================================================================
  19. //        Structures                                                                 
  20. //-----------------------------------------------------------------------------
  21. // The default address table has a "magic" value used to allow a Control
  22. // Panel (for example) to make sure that it gets back what it expects when
  23. // it asks Gestalt for the address table address.  Recommended values of
  24. // "magic" include any four letter character constant *other* than the
  25. // Gestal selector which returns the address table address.  The "version"
  26. // value can be used for a similar sanity checking purpose.  It allows
  27. // changes in the format of the address table to be detected by all
  28. // versions of a cdev/INIT pair.  If a mismatch between expected and actual
  29. // table versions occurs, appropriate action can be taken.  Following these
  30. // two fields  an array of ProcPtrs.
  31. //
  32. // To extend the address table, add fields after theTable.
  33. //-----------------------------------------------------------------------------
  34. #pragma options align=mac68k
  35. typedef struct {
  36.     long            magicNumber;
  37.     long            versionNumber;
  38.     ProcPtr            theTable[3];            // We use only entry 1
  39.     Handle            exclusions;
  40.     Handle            errors;
  41.     AEEventClass    bkEventClass;
  42.     AEEventID        bkEventID;            
  43. } ICeTEeAddressTable;
  44. #pragma options align=reset
  45.  
  46.  
  47. #endif
  48.